{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_1";
                var sub_menu = "menu_1_1";
            </script>
            <div class="col-md-12">
            	<form action='' method='POST'>
	                <div class="panel panel-primary">
	                    <div class="panel-heading">
	                        <div class="panel-title"><h3>一、中间产品信息表</h3></div>
	                        <div class="panel-options">
	                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
	                        </div>
	                    </div>
	                    <div class="panel-body with-table">
		                    <table class="input_in table-detail">
			                    <tr>
			                        <th width="230">中间产品名称(化学名称)</th>
			                        <td><input name='name' value='{{ ip.name }}'  type="text" placeholder="请输入"></td>
                                    <th width="200">商品名称</th>
                                    <td><input name='pro_name' value='{{ ip.pro_name }}'  type="text" placeholder="请输入"></td>
			                        
			                    </tr>
                                <tr>
                                    <th>别名</th>
                                    <td><input name='other_name' value='{{ ip.other_name }}'  type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>CAS号</th>
                                    <td><input name='cas' value='{{ ip.cas }}'  type="text" placeholder="请输入"></td>
                                    <th>物质形态</th>
                                    <td>
                                        <select name="physical_form" data=''>
                                            <option value="固态">固态</option>
                                            <option value="半固态">半固态</option>
                                            <option value="其他">其他</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>是否属于危险化学品</th>
                                    <td>
                                        <select name='is_dangerous' data=''>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                    <th>年产量</th>
                                    <td><input name='year_amount' value='{{ ip.year_amount }}'  type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>是否属于重点环境管理危险品</th>
                                    <td>
                                        <select name='is_emphasis' data=''>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                    <th>临时贮存方式</th>
                                    <td colspan="3"><input datatype="*" name='storage_mode' value='{{ ip.storage_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th rowspan=2>系统内最大存量（t）</th>
                                    <td>生产区</td>
                                    <td colspan="2"><input datatype="n" name='max_sto_amount' value='{{ ip.max_sto_amount }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <td>贮存区</td>
                                    <td colspan="2"><input datatype="n" name='max_input_amount' value='{{ ip.max_input_amount }}' type="text" value='' placeholder="请输入"></td>
                                </tr>
		                    </table>
	                    </div>
	                </div>
                    <div class="buttons">
                        <input class="btn btn-orange btn-lg" onclick="submitHold();" type='submit' value="暂存">
                        <input class="btn btn-info btn-lg" type="submit" value="确认" />
                    </div>
                </form>
            </div>
{% endblock %}

{% block js %}
    <script type='text/javascript'>
        $(function(){
            $('select[name=physical_form]').val('{{ ip.physical_form }}');
            $('select[name=is_dangerous]').val('{{ ip.is_dangerous }}');
            $('select[name=is_emphasis]').val('{{ ip.is_emphasis }}');
        })

        function submitHold(){
            demo.submitForm(true,"?key=hold");
            return false;
        }
    </script>
{% endblock %}